using System.Collections.Generic;
using UnityEngine;

namespace Verse;

public static class OptionListingUtility
{
	private const float OptionSpacing = 7f;

	public static float DrawOptionListing(Rect rect, List<ListableOption> optList)
	{
		float num = 0f;
		Widgets.BeginGroup(rect);
		Text.Font = GameFont.Small;
		foreach (ListableOption opt in optList)
		{
			num += opt.DrawOption(new Vector2(0f, num), rect.width) + 7f;
		}
		Widgets.EndGroup();
		return num;
	}
}
